code: def load2Dimage(filename, alpha=1):
      
      fl = filename.lower()
      if ".png" in fl:
          picr = vtk.vtkPNGReader()
      elif ".jpg" in fl or ".jpeg" in fl:
          picr = vtk.vtkJPEGReader()
      elif ".bmp" in fl:
          picr = vtk.vtkBMPReader()
          picr.Allow8BitBMPOff()
      else:
          colors.printc("~times File must end with png, bmp or jp(e)g", c=1)
          exit(1)
      picr.SetFileName(filename)
      picr.Update()
      vactor = ImageActor()  # vtk.vtkImageActor()
      vactor.SetInputData(picr.GetOutput())
      if alpha is None:
          alpha = 1
      vactor.SetOpacity(alpha)
      return vactor
docs: Read a JPEG/PNG/BMP image from file. Return an ``ImageActor(vtkImageActor)`` object.
  
      .. hint:: |rotateImage| |rotateImage.py|_