added opt args for the radius and pixel tolerance