private static void attachImage(String title, String fileName, Path originalImage) throws IOException{
        ExtentTest test = ExtentReportExtension.getCurrentTest();
        Files.copy(originalImage.toAbsolutePath(), Paths.get("build/reports/" + fileName), StandardCopyOption.REPLACE_EXISTING);
        test.addScreenCaptureFromPath(fileName, title);
    }
Attaches the image to the report. A copy of the image is made in the report directory
jme3-screenshot-tests/src/main/java/org/jmonkeyengine/screenshottests/testframework/TestDriver.java