new function gfxline_append()