fixing image files