Inject canvas from outside. All configurations are injected from main.