public static void decode(String inputImagePath, String outputFilePath) {
        //foto ophalen van disk
        BufferedImage selectedImage = getImage(inputImagePath);

        //kopie maken van geselecteerde foto zodat de foto aangepast kan worden in Java (userspace)
        BufferedImage img = cloneImage(selectedImage);

        //retrieve message from image
        byte[] decodedFile = decodeImage(img);
        
        try {
            //Scrijft message naar een file
            final File outputFile = new File(outputFilePath);
            final OutputStream outputStream = new BufferedOutputStream(new FileOutputStream(outputFile));
            outputStream.write(decodedFile);
            outputStream.close();
        } catch (Exception ex) {
            ConsoleHelper.appendError(ex.getMessage());
        }
    }