While using the PIL interface to numpy, I rediscovered a logic error in the PIL.Image.fromarray() procedure.  The problem (and a solution) was mentioned earlier at:
There does not seem to be a formal way to report errors to the PIL project, and I was told that the PIL/numpy interface was contributed by the numpy developers so I'm reporting it here.

Please let me know if there is something additional I should do.

-- jv

FWIW, I'm using: