Remove painter and added PaintArea to remove painting code from interface code.