fix(io): add tests and many fixes, optimizations and cleanup
Description
Implement some tests and fix bug discovered while implementing the new tests.
- add read - write tests
- ensure unsupported pixel format / type will throw an exception
- support endianness correctly (libpng)
- cleanup and code factorization
- ensure that an exception is thrown when nvJPEG2000 is requested for DICOM
Closes #1064 (closed)
How to test it?
- Launch unit tests