Second attempt at image preloading