Modify circle finding function to use processing chain