goocanvas: use mark function instead of keeping references