Remove image pairs that are open on at least one side and farther than two turns away from each other.