Implement draw path as a command
Implement draw line as a command
Refactor code with gc