Dose optimization to minimize radiation risk with acceptable image quality