If you use mlterm (and supposedly xterm with the right compile flags) you can have inline pixelmaps via DEC -regis- sixel escapes.
I seem to recall that at least one terminal browser can pull some tricks to insert images into the window in X as well.
The browser you're thinking of is w3m.