code: public void requestSaveInputImage() {
  		saveRequested = false;
  		switch( inputMethod ) {
  			case IMAGE:
  				new Thread(() -> saveInputImage()).start();
  				break;
  
  			case VIDEO:
  			case WEBCAM:
  				if( streamPaused ) {
  					saveInputImage();
  				} else {
  					saveRequested = true;
  				}
  				break;
  		}
  	}
docs: Makes a request that the input image be saved. This request might be carried out immediately
  or when then next image is processed.