remove background
allow config of max segment angle