Bugfix definition of $dst in get_header_dimensions function.