Changed canvas to implement pencil feature.