Get image dimensions without EXIF extension

Use `getimagesize` when `exif_imagetype` doesn't exist.
Merge pull request #184 from andrew-kzoo/fix-exif-imagetype

Get image dimensions without EXIF extension