Python script to display images on the console using terminal escape sequence