Photon production, photon scattering and pair production