Better still if you can actually reach these classes globally
Place the images into a list
Make Imagedisplay a singleton
The syntax for class (aka prototype) variables is different