code: def _openResources(self):
          
          with Image.open(self._fileName) as image:
              self._array = np.asarray(image)
              self._bands = image.getbands()
  
              # Fill attributes. For now assume that the info item are not overridden by
              # the Image items.
              self._attributes = dict(image.info)
              self._attributes['Format'] = image.format
              self._attributes['Mode'] = image.mode
              self._attributes['Size'] = image.size
              self._attributes['Width'] = image.width
              self._attributes['Height'] = image.height
docs: Uses  open the underlying file