Fixing a problem with images displaying