code: def inverse(self):
          
          data = np.zeros(self.shape).astype(np.uint8)
          ind = np.where(self.data == 0)
          data[ind[0], ind[1], ...] = BINARY_IM_MAX_VAL
          return BinaryImage(data, self._frame)
docs: Inverts image (all nonzeros become zeros and vice verse)
          Returns
          -------
          :obj:`BinaryImage`
              inverse of this binary image