Added a simple image preloader.