Finished Algo to combine all frames to create rings