```rust
pub fn is_image_data(uri: &str) -> bool {
    static types: &'static [&'static str] = &[&"data:image/gif", &"data:image/gif", &"data:image/jpeg"];
    types.iter().any(|&type_| uri.starts_with(type_))
}