Clipping box tool and contour extraction enhanced