Updated paintbrush.cpp