Added Sobel mask (edge detection)