Expose Imagick::getImageMimeType to userland

Fixes #4047

Test Plan:
`slow/ext_imagick/`, zend tests live there too