@Override
			public void actionPerformed(ActionEvent arg0) {
				java.awt.EventQueue.invokeLater(new Runnable() {
					public void run() {
						if (box.isSelected()) {
							if (checkedImages.size() == 2) {
								JCheckBox jcb = checkedImages.get(0);
								jcb.setSelected(false);
								checkedImages.remove(0);
							}
							checkedImages.add(box);
						} else {
							checkedImages.remove(box);
						}
					}
				});

			}