Flat lenses for imaging applications