wrong calculation of width and height of boundingBox and contentBox