Better bounding box calculation for bezier curve.