parameterized many factors, lmin,lmax, periods, imagedims and so on.