found a better inverse distortion formula