Use C++11 threads in PixelBuffer