org-drill failed for me on non-X frames with error message. I wrapped each org-display-inline-images call in a short check if the current frame is of the terminal kind and only executed it if that's not the case. E.g. an X11 frame or ns frame. This doesn't handle the 'pc' kind, which is for MSDOS terminals, but I think that's quite obsolete by now.