multithreaded drawing