Changed parameter for sobel, and re-defined shiftregister to work with fewer shift registers