code: def from_forward(cls, fmodel, **kwargs):
          
          im = cls(fmodel.dim_x, fmodel.dim_y, **kwargs)
          im.fmodel = fmodel
          return im
docs: Construst an inverse model from a forward model and constraints.