enable open mp, image is processed in chunks equal to OMP_NUM_THREADS