save boundingbox state