Impact of early stage non-equilibrium dynamics on photon production in relativistic heavy ion collisions