if (fileChooser == null) {
fileChooser = new JFileChooser(Configuration.getInstance().getDefaultWorkingDirectory());
fileChooser.setAcceptAllFileFilterUsed(false);
Set<String> types = unique(ImageIO.getWriterFileSuffixes());
for (final String extension : types) {
fileChooser.addChoosableFileFilter(new AbstractFileFilter() {
public String getAcceptedExtension() {
return extension;
}
public String getDescription() {