Updated canvas example