Image preloading.
changes for index