handles multiple images' preloading