throw exeption if invalid image passed to featuresInImage
add async mode; callback param to featuresInImage
check minFeatureSize range and fix def value