iTerm freezes when process crashes during image display
c.f. https://github.com/Keno/TerminalExtensions.jl/issues/16
If the process crashes (or the SSH connection drops, etc.) after it indicated it would send image data, iTerm2 will keep waiting for it and it's almost impossible to get the terminal back. I'm not entirely sure what I'm asking you to do here, I guess leave error mode if a non-base64 character is encountered or maybe even after a (long-ish) timeout.