This changes behaviour for sRGB textures, which weren't previously converting to the correct color space. Also add unit tests for storing to PNMImage. Closes: #212