@Override
    public Collection<String> getItems() {
        items.clear();
        try {
            for (String item : fTPConnector.getNames()) {
                if (item.endsWith(".jpg") || item.endsWith(".jpeg")) {
                    items.add(item);
                }
            }
        } catch (IOException ex) {
            throw new RuntimeException(ex);
        }
        return items;
    }