Added proper handling of brush geometry to copy and paste.