added a preload for the images