Haha yes, you can’t display the WHOLE array, my bad for not mentioning, you would do something like name[index].display(). And actually, because of that, I believe you don’t even have to add in the img = name[index]; part I told you before! 
(Because the randomly selected index will apply in the name[index].display() call that you won’t have to set the image equal to the index in the display function.)
Hopefully that works!
EnhancedLoop7