Adding preloading of images