Fixes issue #2.

Note that although the package handles negative shifts properly (based on my testing) there is currently no testthat test for negative shifts, as my comparisons are from EXELIS ENVI, and ENVI fails to properly handle negative shifts. Based on my review this package does it correctly - ENVI does not.