added unsafe mode to omp

Instead of giving each thread its own grid to write to, has them share
one between them instead. Introduces a race condition that causes
artifacts in the output image, but causes memory usage not to depend on
number of OMP threads. Useful for benchmarking.