When using a ffp parameter file, the motion is added only to first 7 volumes.
Reason: the GetNumVolumes() returns 7 (even if image with 54 gradients) because the gradients are currently parsed AFTER the motion is being added.
Solution: parse the gradients before adding the motion so the image information is complete at that moment.