fix for when contour doesn't appear in both images

This answers my question from a few commits back
trivial: iteration updates