Fixed image loader error handling