Fixed image loading bug