Change the procedure of the sobel