Use getimagesize as fallback when mime_content_type is not available

E.g. on my Windows system