An Approach to Image Indexing of Documents