Update the bounding box creation