Modified code to support extraction of first motion volume (among multiple selected volumes) for analysis of global motion signal