DICOM-ization of images through PHP