Added redraw() method to force repaint.