Add commandline argument to specify maximum distance in pixels for matching