porting the sobel image processing filter to version 5