Finishes up the draw function.