Prevent failure on strange chunk types

The chunk type is not considered to be a valid string.
Merge remote-tracking branch 'upstream/master'
Cleanup the pixel module and add documentation
Merge branch 'pixel_type'
Edit formatting
Merge pull request #23 from ccgn/master

Cleanup the pixel module and implement nearest neighbour sampling