fixed bugs in brush rotation code and began adding color support