JUST SOME THREADING FIXES. STILL SOMETIMES GET TWO THREADS ON ONE PIXEL.