drawing done in new thread