You can use the convert program (included with imagemagick) to convert a LaTeX file to an image:
$ convert -density 144 -geometry 100% source.dvi dest.jpeg