New machine-learning approach brings digital photos back to life