Changed how background images are swapped