#49 move drawing to separate thread