[pixeldata] Extend image conversion options with bit depth
[pixeldata] Extend image conversion options with bit depth

- let the user choose whether to output an 8 bit or a 16 bit image
- move conversion of pixel values to image
  into helper methods
- add a few tests covering this option

Enet4/dicom-rs,Enet4/dicom-rs