          logger.debug("Loading Training preview images")
          imagefiles = self.get_images(self.pathpreview)
          modified = None
          if not imagefiles:
              self.previewtrain = dict()
              return
          for img in imagefiles:
              modified = os.path.getmtime(img) if modified is None else modified
 
</s>
            logger.debug("No preview to display")
          logger.debug("Loading Training preview images")
          imagefiles = self.get_images(self.pathpreview)
          modified = None
          if not imagefiles:
            logger.debug("No preview to display")
              self.previewtrain = dict()
              return
          for img in imagefiles:
              modified = os.path.getmtime(img) if modified is None else modified
keep keep keep add keep keep keep keep
 Add right click menu to GUI. Implement some GUI Logging
lib/gui/utils.py