Correction of image distortions, e.g. due to magnetic field inhomogeneities {due to eddy currents, e.g. caused by switching of the gradient magnetic field}