Influence of the Lattice Distortion on the Screening of an Impurity