Draw path and detect touch