public boolean accept(File f) {
			if (f.isDirectory()) {
				return true;
			}
			String extension = getExtension(f);
			if (extension != null) {
				if (extension.equals("png") || extension.equals("gif")
						|| extension.equals("jpg")) {
					return true;
				} else {
					return false;
				}
			}

			return false;
		}