Don't restore canvas state twice. Fixes #54.