Inserted the image into the main window.