GrabCut: Fixed cases close to boundary of clips