added PaintFrame class