def get_dimensions(dicom):
  """
  Return the frame dimensions (width, height).
  
  Args:
    dicom: pydicom Dataset
  
  """
  try:
    width = dicom.Columns
    height = dicom.Rows
    return width, height
  except:
    raise Exception('Missing "Rows" or "Columns" DICOM tag')