code: def mask_by_ind(self, inds):
          
          new_data = np.zeros(self.shape)
          for ind in inds:
              new_data[ind[0], ind[1]] = self.data[ind[0], ind[1]]
          return type(self)(new_data.astype(self.data.dtype), self.frame)
docs: Create a new image by zeroing out data at locations not in the
          given indices.
  
          Parameters
          ----------
          inds : :obj:`numpy.ndarray` of int
              A 2D ndarray whose first entry is the list of row indices
              and whose second entry is the list of column indices.
              The data at these indices will not be set to zero.
  
          Returns
          -------
          :obj:`Image`
              A new Image of the same type, with data not indexed by inds set
              to zero.