Set type property with image_type_to_mime_type and exif_imagetype