Work out the right height for the div for mxc thumbnails.