Refactor test app for reuse; use SolidBrush as a parameter for Graphics.Clear(); misc fixes.