title: Resize to fit image in div, and center horizontally and vertically
body: <p>I have an image in a div. I would like the image to resize to fit the div, and be horizontally and vertically centered. I would like a solution that works in ie >= 8.</p>