Fix image loading problem