private void pixelate() {
		String str = JOptionPane.showInputDialog(this, "Enter pixel size", "Input", JOptionPane.QUESTION_MESSAGE);
		int size = Integer.parseInt(str);
		resultImage = ImageProcessor.pixelate(inputImage, size);
		imagePanelProcessed.setImage(resultImage);
		infoBar.setText(" Info.: Image is pixelated");
		textProcessed.setVisible(false);
		frameProcessed.setVisible(true);
	}