Fix spatialorder in PPM/PGM/PBM
Define the transpose for 2d images

Note this only affects the internal representation;
if you want to display the image flipped, change the spatialorder property.