motionCorrect modified to use signed integers

Requires updated tiffWrite function from helperFunctions, which
implemented support for signed integers in tiffWrite