make Graphic.visible work

* and fix bug: segfault after a while if drawing nothing