Added image preloading