added setDrawPanelSize to paint system