*/
    protected Image getPageImage() {
        synchronized (documentLock) {
            if (document != null) {

                if (logger.isLoggable(Level.FINE)) {
                    logger.fine("Capturing " + documentName + " " + pageCursor);
                }

                // check page bounds just encase.
                if (pageCursor < 1) {
                    pageCursor = 1;
                } else if (pageCursor > document.getPageTree().getNumberOfPages()) {
                    pageCursor = document.getPageTree().getNumberOfPages();
                }

                return document.getPageImage(pageCursor - 1, GraphicsRenderingHints.SCREEN,
                        Page.BOUNDARY_CROPBOX, rotation, zoom);
            }
            return null;
        }
    }