Improved the animation of the background images