Added height scale

Height is now calculated by the scale object instead of using a custom
calculation to make code more maintainable.