Fixed an issue where the image extension is replicated when the URL is converted to a string more than once. Fixes #91
Merge pull request #91 from christeredvartsen/issue-91

Image extension is replicated when a URL is converted to a string more than once