A medical device has an image generation module to generate an image of a subject, an adjustment module to adjust at least one parameter that is used by the image generation module to generate the image, and an evaluation module to evaluate whether the image generated by the image generation module based on the adjustment of the adjustment module, deviates by a predefined amount from a predefined set value. An access module accesses a memory in which units are stored, with which a specific running sequence for the generation of an image can be run by the image generation module. The access module accesses the memory to download a unit if the evaluation by the evaluation module shows that the image generated by the image generation module on the basis of the adjustment of the adjustment module deviates more than by the predefined amount from a predefined set value.