Add panel for painting and override method for resize frame.