Extracted a superclass called ImageView from QuadImageview and SingleImageView
Prompt user to save state when closing the window or backing out.