Machine-Learning Reprogrammable Metasurface Imager