Replaced find with find_last_of when detecting the location of the . in a string pointing to the image used in the widget.
Merge pull request #10 from Gazoo101/master

Improved extension detection in widgets using images