1. A method, comprising: acquiring data indicative of a motion of a target; and determining, using a processing device, a timing for when to initiate one or more x-ray images based on the data indicative of the motion of the target, the determining comprising: determining whether a position of the target, due to the motion, is within a treatment tolerance; and generating the one or more x-ray images of the target if the position is not within the treatment tolerance.