add image_buf thread, but untested
something wrong with the imagebuf, maybe the memory use, app always killed when running