Keep imagetype and mimetype in sync

camel case function names please - THX