Keep imagetype and mimetype in sync

I'd call it:
````
getMimeTypeForImageType()