@Override
			public void mouseClicked(MouseEvent arg0) {
				// if compare button was pressed, none of the images are
				// selected
				// same for the other icon
				if (!img1Selected && !img2Selected) {
					img2Selected = true;
				}

				if (img2Selected && !img1Selected) {

					imagePanel.remove(imagePanel.getComponent(1));

					FadeOut fo = new FadeOut(backgroundImage, overlayImage);
					fo.setSize(250, 250);

					labelImg1.add(fo);
					fo.start();

					imagePanel.add(labelImg1, 1);

					revalidate();
					repaint();

					img2Selected = false;
					img1Selected = true;
				}
			}