Having this html/css code:
<img src="http://www.wwwwwww.com//photos/foto.PNG" />
I'm not sure if it's exactly what you're looking for, but by wrapping it in a
<div> tag with a few css properties, you can achieve the effect.
I'm not in love with the static nature of the sizing, so if you need something more dynamic, keep looking, but this should get you started.