Correctly calculate widest line length. Add height buffer to bounding box. Remove debugging puts