Add a pre_render hook
remove some references to the main canvas