Photons are the form energy takes when traveling through free space. Yes, anything that emits light is creating photons. Electrons are changing energy state, and when they give up energy, the energy is in the form of photons because free energy is ALWAYS in the form of photons. No, photons are not mass.