changed how images are preloaaded