Code for Motion Correction of videos