added edge detection so that input can just be image of shred