Modified GrabCut to authorize the user to resize the window.