The problem of redrawing with the bounding box was solved