improve cairo glsink example