Optimizing Magnetic Resonance Imaging for Image-Guided Radiotherapy