Added canvas code