Optical imaging of water during X-ray beam irradiations from linear accelerator