Implemented pencil tool