public boolean saveScreenshot(BufferedImage screenshot, long seconds) {
        try {
            String outputFilename = String.format(
                "%s/%s_%s.png",
                outputDirectory,
                filePrefix,
                seconds
            );

            // Dump file to disc
            ImageIO.write(screenshot, "png", new File(outputFilename));

            // Remember screenshot position
            screenshots.add(new ScreenShot(seconds, outputFilename));

            // Return file name on success
            return true;
        }
        catch (Exception e) {
            e.printStackTrace();
            return false;
        }
    }