add thread

build paintthread