Changed edgedetection to work with 1344, which is the number hcount actually goes up to. And thus shiftregister actually needs to store 1344 pixels