Keep imageType and mimeType properties in sync. (+1 squashed commit)
Squashed commits:
[81c382e] Fix var name