fixes the image file