Optical transformation encrypted image based on affine transformation