Updated to allow images to repeat