Add bounding box calculation