small wrapper to use canvas across environments easily