Described embodiments include an apparatus that includes an electrical interface and a processor. The processor is configured to receive via the electrical interface, from a plurality of sensors, a first signal that indicates a location of an intrabody tool inside a body of a subject, and a second signal that indicates a phase, of a physiological motion cycle of the subject, at which the first signal was acquired. The processor is further configured to acquire, using a magnetic resonance imaging (MRI) scanner, a set of multiple images at the location indicated by the first signal, over a portion, of a subsequent physiological motion cycle of the subject, that includes the phase indicated by the second signal. Other embodiments are also described.