Keep imagetype and mimetype in sync

Thanks for catching this.