void processTexture() {
		if (selectedTexture != null) {
			processedTexture = new CPGreyBmp(selectedTexture);
			
			if (mirror) {
				processedTexture.mirrorHorizontally();
			}

			CPLookUpTable lut = new CPLookUpTable(brightness, contrast);
			
			if (inverse) {
				lut.inverse();
			}
			
			processedTexture.applyLUT(lut);
		}
		else {
			processedTexture = null;
		}
		
		controller.getArtwork().brushManager.setTexture(processedTexture);
		if (optionsPanel != null) {
			optionsPanel.repaint();
		}
	}