From http://unlayered.com/code/fluid-images-same-aspect-ratio/