+
+def image_to_display(path, start=None, length=None):
+ """
+ Display an image
+ """
+ rows, columns = os.popen('stty size', 'r').read().split()
+ if not start:
+ start = IMAGE_SHIFT
+ if not length:
+ length = int(columns) - 2 * start
+ i = Image.open(path)