Fixed the issue with shifting.
Fixed a major copy paste error in getExpShift that was causing it to compare the image to itself instead of the two different images. Results are much more accurate now.