def testPIL(self):
  """
  Return 1 if PIL is installed, else return 0.
  """
  try:
    from PIL import Image
  except:
    return 0

  return 1

