Passing more parameters by reference into draw()