fixed image loading bug