reading pixel data, albiet in the wrong order