Third attempt at image preloading