Compensating camera motion using feature tracking