A Learning State-Space Model for Image Retrieval. (30th April 2007)