Determining width by maximum of all lines.

TODO: add tests to get coverage