Add support for png and gif image formats

I just made this change for a project I'm working on.

Thanks for the great work on the plugin!
Merge pull request #1 from paddyohanlon/patch-1

Add support for png and gif image formats