added threads for taking measurements and drawing on canvas