public void mousePressed(MouseEvent e) {
		if (e.getButton() == MouseEvent.BUTTON1) {
			int val = inputImage.getRGB(e.getX(), e.getY());
			Color color = new Color(val);
			pointColor[0] = color.getRed();
			pointColor[1] = color.getGreen();
			pointColor[2] = color.getBlue();
			resultImage = ImageProcessor.preservingPartColor(inputImage, mask, color.getRGB(), rgRangeValue, rbRangeValue,
			        gbRangeValue);
			imagePanelProcessed.setImage(resultImage);
			imagePanelProcessed.repaint();
			System.out.println("Mouse Right is pressed");
			addToImageBuffer(resultImage);
		}
	}