Added error handling and fixed image preloader