Correction of the preview image from jpg to png