Simultaneous Optimization of Radiation-Imaging Coincidence for a Multi-Energy Linac