Modify plugin to work with .ico images.
Get file extension with build-in function.
Merge pull request #5 from ivol84/master

Modify plugin to work with .ico images.