Contact electromagnetic terms and nuclear shadowing of high-energy photons