Update canvas example after refactoring.