don't distort resized images

If images have width/height attributes set and are reduced in size by max-width: auto, they look distorted. height: auto fixes this.