The generalized non-linear fresnel transform and its application to image encryption