Fix bug in function that converts ParallelArray back to an image buffer.

(This was the reason the result was coming out with strange diagonal
tearing through the middle.)