Fix constant loading of images.