A method of magnetic resonance imaging (MRI) is characterized by the following steps: a) forming a susceptibility model (305, 403) of at least a part of a subject (S), including an imaged body part (203), by using a structural magnetic resonance image (301) of the part of the subject (S) and/or prior knowledge of the anatomy of the subject (S) b) computing susceptibility-induced field deviations (404) present in the imaging volume at each time MR signals are acquired using the susceptibility model (305, 403) and the knowledge of a monitored position and monitored orientation (401) of the part of the subject (S) at that time c) using the information about the susceptibility-induced field deviations (404) derived in b) for image correction (406), in particular correction of image distortions and/or intensity modulations. The quality of magnetic resonance imaging of moving subjects is thereby improved.