panorama: better height calculation