- corrected unnecessary tests in converting the pair of images