added width and height to the drawpanel