Added functionality for color and pencil width