Fix error with widget and uploaded images.
Add test for widget and uploaded images.
Merge pull request #174 from zlorf/master

Fix error with the widget choking on uploaded images

Thanks Jacek Tomaszewski!