Text this: Gradient-Descent-like Ghost Imaging