Motion-corrected Fourier ptychography