Fixed preloadImages.