fixed print example bug
added a draw with canvas directive
fixes to the canvas