Calculate the height of the map based on header. Fixes #7