now second param to featuresInImage() can be null
fix float comparation error