tried to move the image panel into the main class