public FileItemList(String workingDirectory) {
        super(workingDirectory);
        directory = new File(workingDirectory);
        if (directory.exists() && directory.isDirectory()) {
            items.addAll(Arrays.asList(directory.list(new FilenameFilter() {
                @Override
                public boolean accept(File dir, String name) {
                    return (name.endsWith(".jpg") || name.endsWith(".jpeg"));
                }
            })));
        }
    }