There are three states 0, 1 or 2 so you can show the image but not having it plotted. This command is saving the value in the drawing in the dictionary ACAD_IMAGE_VARS.
Observere that AutoCAD 2006 has three states now 0, 1 or 2 but the dictionary value is 0, 1 or 3
A simple way to retrieve the value is:
(defun imageframe ()
(setq dict (dictsearch (namedobjdict) "ACAD_IMAGE_VARS"))
(if (not dict)
0
(cdr (assoc 70 dict))
)
)