Keep imageType and mimeType properties in sync.