Issue #2217783 by mondrake: Remove $extension and $mimeType from Image, use image_type_to_xxx function in the getters instead.