made line drawing more modular