Patch 1

Bugfix wrong calculation of width and height of boundingBox and contentBox