Here's a thread that answers, how to print an image with ESCPOS. ESC POS command ESC* for printing bit image on printer
Here's some code in GLBAsic, that I wrote to print an image to an ESCPOS printer. There's 3 methods you could use. I found ESC * the most compatible one. The NV ram, I could not get working and the GS v 0 method worked best, but is said to be deprecated.
https://www.glbasic.com/forum/index.php?topic=11212.msg98892#msg98892