Quantum dynamics of photon in rainbow gravity