fixed image loading issue