This can be shorter:
```rust
match self.get_type_and_data() {
    (None, Some(uri)) if is_image_data(uri) => Some(parse_url(uri, Some(base_url.clone()))),
    _ => None
}
```