A GENERAL SYSTEM FOR THE RETRIEVAL OF DOCUMENT IMAGES FROM DIGITAL LIBRARIES