#656: Added scaling option to distance xform