Fix issues #19.(Brush still drawing with mouse up).