fixed image loading problem