determine content type for jpeg_image from file_name extension