Add color choosing to line function
Change draw function used in cli.cpp and file.cpp to get better performance