Update the draw function in sprite.

Makes the Sprite class more flexible. Can now provide a specialized draw
function.