Updating the computation of bounding rectangle