The Window class has a method _stretch_ which can be set to false for a tiled background and true for a stretched background.
To apply this setting, add the line "self.stretch=true" between the line "def initialize" and the line "end" in the Window_Base script section.