Modify edge detection method to use processing chain