Sometimes the image format comes as `image/JPEG`, which results in an `Unsupported image format: image/JPEG`