revert commit c978e7bf94c1, since it is the client’s responsibility to clear the image contents if they require so
add simpler height calculation method that leverages  styling class methods