How has photography changed the importance of graphic design?

In what sense?
Hi there, I am mainly looking at how technical developments through photography have helped progress graphic design, also the transition from dark room photography to digital and how this has affected graphic design. Also in regards to how important the role of photography is in advertising. Many thanks.