Handle errors from imagecreatefrom* functions where the extension does not match the files mimeType
Merge pull request #11 from sime/master

Handle errors from imagecreatefrom* functions where the extension does n...