Changed tiled background to work based on repetitions.