Added XML output for Graphics2D and WinForms.