"Added function to get dicom headers for sync code"