Complex sentence: Art in ancient Egyptian context played a major role in religious function, whereas an image of an object substituted for the entire object.
Split into simpler sentences: Art in ancient Egypt played a major role in religious function. An image of an object substituted for the entire object.