Correction of image distortions, e.g. due to magnetic field inhomogeneities {due to magnetic susceptibility variations}