Fixed the volume calculations to work with either Par/Rec or Dicom images.