Add option to use existing canvas for rendering