Curl code was missing User Agent

* added use agent HTTP header, now required by GH
* closing curl after use.
Merge pull request #50 from ResponsiveImagesCG/load_issues

Curl code was missing User Agent header