Video retrieval based on dynamics of color flows