CreateCanvas for browser and node