add rotate function

The rotate used to rotate the context around an arbitrary point. Also
removed unnecessary whitespace in draw function.