Motion compensated reconstruction using deep learning for computational optics