addresses issue 263 by adding support for png and gif images for posts

This change adds a function that makes three attempts at finding a post_image before giving up and falling back to the author_twitter image. The current preference order is jpg, png, gif; first one found wins.

This satisfies the feature request in issue #263; which was one I had myself.