Moved ImagePanel to be called only from Mainframe, and removed static
methods.