added rudimentary multithreading to image processing. Made everything at least 3 times faster