Improve brush in paint.html.