Do pix conversion to numpy via an intermediate copy buffer

- Also fixes edge cases that were not supported correctly