Clearing Distortion from a Distorted Template