fix overwriting width for all images if one was smaller than `width`
Don't print newlines and do cursorUp() if the ouput is not a terminal