Improve height-setting for images.