Add support for min-width and max-width to images.

This fixes the images on the homepage of github.
Merge pull request #3449 from glennw/img-min-max

Add support for min-width and max-width to images.