alternate reading mime-type via gd-extension

working without fileinfo-extension