updating JECs for photons