new features functions, extract-connected-features, crop feature and to-image
correcting feature functions to reflect new namespace
some minor modifications to improve speed