What is the function of imagery in these lines?

Im gonna go with comparison because they are comparing the glass to bits of shattered rainbow.
its not evocation because they arent recalling a memory, its not contrast because its not saying the difference between two things, and its not explanation because they arent really explaining anything.