(DSA) enables the vascular structure around a heart to be displayed using the injection of a contrast medium while the heart is being observed by an X-ray apparatus. The quality of a DSA sequence can be affected by the breathing of the patient, when under examination. This is because the images forming a DSA sequence are gathered using an X-ray modality, and therefore the independent movement of transparent tissues inside a patient causes motion artifacts to appear in DSA images. According to an aspect of the present invention, a method, device, X-ray system, computer program element, and a computer readable medium are provided which can correct artifacts appearing in DSA images which originate from to the motion of the heart and the motion caused by breathing in a patient.