For improving image quality in MRI, a method for magnetic resonance imaging of an object is provided which comprises obtaining MRI data during at least a first and a second acquisition step (1, 2, N). Each acquisition step (1, 2, N) comprises at least two data acquisition periods (11, 12, ..., NMN). A movement of the object is monitored by a camera system (7) during the acquisition steps (1, 2, N). Data obtained during the acquisition periods (11, 12, ..., NMN) is adjusted based on the monitoring. Data obtained during a first reference period (11) of the first acquisition step (1) is compared to data obtained during a second reference period (21) of the second acquisition step (2). The obtained or adjusted data is corrected based on a result of the comparison.