Added basic brush-changing implementation.