update the size of camera to adapt to new scanbox