Added image preloading.