use getCanvas() in PGL