Added Sobel support