          logger.debug("Loading preview image")
          imagefiles = self.get_images(self.pathoutput)
          if not imagefiles or len(imagefiles) == 1:
              self.previewoutput = None
              return
          # Get penultimate file so we don't accidently
          # load a file that is being saved
          show_file = sorted(imagefiles, key=os.path.getctime)[-2]
 
</s>
            logger.debug("No preview to display")
          logger.debug("Loading preview image")
          imagefiles = self.get_images(self.pathoutput)
          if not imagefiles or len(imagefiles) == 1:
            logger.debug("No preview to display")
              self.previewoutput = None
              return
          # Get penultimate file so we don't accidently
          # load a file that is being saved
          show_file = sorted(imagefiles, key=os.path.getctime)[-2]
keep keep add keep keep keep keep keep
 Add right click menu to GUI. Implement some GUI Logging
lib/gui/utils.py