Fix for image loading