Use cURL if possible, use getimagesize instead of exif function if it's not available.
Merge pull request #11 from cmfcmf/cURL

Use cURL if possible, use getimagesize instead of exif function if it's not available.