Fixed pxl and pixelate not waiting for workers.

I was using the number of CPUs instead of the number of rectangles.