A layout-analysis based system for document image retrieval