Cleaned up MainForm.cs and ImageDisplayPanel.cs