Fix Tk #26

This also adds a test for drawing directly to a canvas
Merge pull request #51 from timholy/fixTk26

Fix Tk #26