Can we do the following structure:

```
if (revision.mediumUrl} {
  // Use medium URL
} else  if (resourceSubType && revision.mime.indexOf('image/') !== -1) {
  // Use download URL
}
```