How a Kalman filter works, in pictures