Added draw_pipeline function and passes test_ls2 and test_ls3