Significantly improved the accuracy and reliability of the snapping heuristic:
- Now calculates threshold by comparing the value of the current stream
  pixel to the maximum pixel in the raster, instead of comparing the minumum
  to the maximum
- Now returns the coordinates of the center of the snapped pixel, not the
  northwest corner