save file in another thread
use vector for strokes