  
  from lib.align import DetectedFace, transform_image
  from lib.cli.args import ConvertArgs
  from lib.gui.utils import get_images, get_config, initialize_config, initialize_images
  from lib.gui.custom_widgets import Tooltip
  from lib.gui.control_helper import ControlPanel, ControlPanelOption
  from lib.convert import Converter
  from lib.utils import FaceswapError
  from lib.queue_manager import queue_manager
  from scripts.fsmedia import Alignments, Images
  from scripts.convert import Predict, ConvertItem
 
</s> remove from lib.align import DetectedFace, transform_image
 </s> add from lib.align import DetectedFace </s> remove from PIL import Image, ImageTk
 </s> add  </s> remove from plugins.plugin_loader import PluginLoader
from plugins.convert._config import Config
 </s> add  </s> remove import cv2
 </s> add  </s> remove     from lib.align.aligned_face import CenteringType
 </s> add 
  
  from lib.align import DetectedFace, transform_image
  from lib.cli.args import ConvertArgs
  from lib.gui.utils import get_images, get_config, initialize_config, initialize_images


  from lib.convert import Converter
  from lib.utils import FaceswapError
  from lib.queue_manager import queue_manager
  from scripts.fsmedia import Alignments, Images
  from scripts.convert import Predict, ConvertItem
keep keep keep keep replace replace keep keep keep keep keep
 bugfix:
    - preview tool - Prevent tkinter variables from exiting main thread
refactor:
    - preview tool - Split module to smaller sub-modules + docs, locales
Typing:
    - tools.preview.cli
Unit test:
    - tools.preview.viewer 
tools/preview/preview.py