An eye for an AI: Optic device mimics human retina