Document image representation, classification and retrieval in large-scale domains