fix height calc of height using the ratio of w/h

Fixes #32