@Override
	public boolean accept(File arg0) {
		String fName = arg0.getName();
		String ext = "";

		if (fName.contains(".")) {
			ext = fName.substring(fName.lastIndexOf("."));
		}

		return ext.equalsIgnoreCase(".png") || ext.equalsIgnoreCase(".jpg") || ext
				.equalsIgnoreCase(".bmp") || arg0.isDirectory();
	}