Add a canvas create, break script’s dependency on gfx.

The build time on my laptop after touching gfx goes from 1m37s ot 46s.
Merge pull request #3178 from SimonSapin/canvas-crate

Add a canvas create, break script’s dependency on gfx.