fixing image file extensions