Composition is being used both ways in the paragraph, which could explain your difficulty!
The first two instances that you highlight refer to the elements of a work of art. The second two refer to a work of art, and the last instance refers to the elements again.
I hope this helps!
Student or Learner