Add test for 16-bit image
Lower bytestring requirement
Refactoring, P4 parsing and P4 test
Cleanup + TODOs
More tests
Implement P5 files + tests