added preloading of images in static/images directory