                  size = (framesize[0], int(displayimg.size[1] * scale))
              else:
                  scale = framesize[1] / float(displayimg.size[1])
                  size = (int(displayimg.size[0] * scale), framesize[1])
  
              # Hacky fix to force a reload if it happens to find corrupted
              # data, probably due to reading the image whilst it is partially
              # saved. If it continues to fail, then eventually raise.
 
</s>
            logger.debug("Scaling: (scale: %s, size: %s", scale, size)
                  size = (framesize[0], int(displayimg.size[1] * scale))
              else:
                  scale = framesize[1] / float(displayimg.size[1])
                  size = (int(displayimg.size[0] * scale), framesize[1])
            logger.debug("Scaling: (scale: %s, size: %s", scale, size)
  
              # Hacky fix to force a reload if it happens to find corrupted
              # data, probably due to reading the image whilst it is partially
              # saved. If it continues to fail, then eventually raise.
keep keep keep add keep keep keep keep
 Add right click menu to GUI. Implement some GUI Logging
lib/gui/utils.py