Move history handling to separate file, and show result image in a PictureBox.