implemented the edge detection. Very slow process. Will experiment with thinning to improve speed. Edge detection at decent thresholds should be able to work well