DICOMUtil.convertDICOM now also takes in image slice and can create images of any formats supported by ImageIO for any slice now.
Added DICOMUtil.convertDICOMToByteArray which has the same options as convertDICOM, but returns a byte array directly instead of first encoding it as a base-64 string. This is beneficial if a user only wants to write the image to a file in a transformer. Otherwise they would need to base-64 decode the image that was just base-64 encoded. This also essentially provides the same behavior as DICOMUtil.dicomToJpg.
Deprecated DICOMUtil.dicomToJpg. DICOMUtil.convertDICOMToByteArray should be used instead.

Added a new method and reference list method DICOMUtil.getSliceCount(connectorMessage) that returns the number of image slices in the DICOM message.

Fixed DICOMUtil's convertDICOM and dicomToJpg methods not working in destination transformers because metadata id was being checked erroneously. Now that each content type stores data type, we can check against data type instead.

MIRTH-2170
MIRTH-2171
MIRTH-2742