Sobel edge detection hardware implementation