Transpose images by height from 2bpp to png and width from png to 2bpp.

Transposing non-square images would work over the expected width, rather than the current width (the expected height). This never came up since transposed images are typically square.