Add option to perform motion correction prior to alignment