  import cv2
  import numpy as np
  from PIL import Image, ImageTk
  
  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
 
</s> remove from PIL import Image, ImageTk
 </s> add  </s> remove from lib.gui.custom_widgets import Tooltip
from lib.gui.control_helper import ControlPanel, ControlPanelOption
 </s> add  </s> remove import cv2
 </s> add  </s> remove from configparser import ConfigParser
 </s> add  </s> remove from typing import Any, Callable, cast, Dict, List, Optional, Tuple, TYPE_CHECKING, Union
 </s> add from typing import Any, Dict, List, Optional, Tuple, TYPE_CHECKING, Union
from lib.align import DetectedFace
  import cv2
  import numpy as np
  from PIL import Image, ImageTk
  
from lib.align import DetectedFace
  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
keep keep keep keep 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