Fixed height computation to be more precise.
Added height recomputing functionality (might be used if images were loaded after the height was computed).