Added redraw functions and brush size