Corrected the use of Sobel filter