Basis functions learned from sparse coding of time-varying natural images