Added support for brush rotation.