multithreading of tracking works but requires preloading of images