Removed requirement for stage reference.

Moved stage (now canvas) variable into config.