adding preloading for images