Is there a way to show preview images in the terminal in the same way the Drracket IDE does?

For exemple, if I write:
#lang racket
(require 2htdp/image)

(circle 20 "solid" "blue")

In Drracket, it will preview a bitmap circle in the REPL.
But using the terminal (with Neovim texteditor) it shows:

(object:image% ... ...)

I really like using neovim and vim motions, so I'd like to have this kind of feature on the terminal.

In a terminal, you need to set the print handler to show images in a GUI. One such version is

(define (make-pict-print-handler)
(dynamic-require 'racket/gui #f) ;; or show-pict might not work
(define old-handler (current-print))
(define (new-handler v)
(old-handler
(if (pict? v) (show-pict v) v)))
new-handler)

(current-print (make-pict-print-handler))

This is for picts but could probably be easily adjusted for 2hdtp/image.