pub fn optimize_image( data: &[u8], mime_type: &str, max_width: Option<u32>, ) -> Result<OptimizedImage>