Record getImageRecord(PDFPage page, ImageInfo info) {
        // first find the relevant page record
        Integer pageNumber = new Integer(page.getPageNumber());

        // System.out.println("Request for image on page " + pageNumber);

        PageRecord pageRec = getPageRecord(pageNumber);
        if (pageRec != null) {
            SoftReference ref = pageRec.images.get(info);
            if (ref != null) {
                String val = (ref.get() == null) ? " not in " : " in ";
                // System.out.println("Image on page " + pageNumber + val + " cache");
                return (Record) ref.get();
            }
        }

        // System.out.println("Image on page " + pageNumber + " not in cache");
        // not found
        return null;
    }