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!