I need to create a DICOM file from jpg in Python. I found: https://github.com/jwitos/JPG-to-DICOM/blob/master/jpeg-to-dicom.py But the image in the generated dcm file is disstor