Height width, refactoring - use same calculations to both measures.