Blur filter with Pthreads almost working