DSP-implemented Sobel for image edge detection