Systems of generalized harmonic lenses for image formation