(1) fix cmake paths, (2) add featuresToImage