First set your $DISPLAY to whereever you want the program to appear, then run the program.
For example:
Code:
DISPLAY=k9:0.0 emacs
Now in the case of fewing images you could do something like
Code:
DISPLAY=k9:0.0 feh myImage.png
You can set the DISPLAY for a session with the export command
Code:
export DISPLAY=k9:0.0