pub fn encode(_image: &ImageBuffer) -> Result<Vec<u8>, String>