pub fn detect_image_format_from_mime(mime: &str) -> ImageFormat
Detects an image format from a MIME type string.