Image stabilization by features tracking