Quantum mechanical description of light propagation