If a galaxy is so big that it takes millions of light years for a single photon to cross from one end to the other, how can we see photos of galaxies when the light from the back end will be out of place when the front one's light arrives?

...

Okay, that might not have come out properly, but I hope you get the idea. How can we see Galaxy photos?