If we use jpg and eps, the image quality is reduced. It is better that we use the latex code. Image quality will be the best. Here is PStricks example for *.tex. LaTeXDraw is a free PSTricks code generator or PSTricks editor for LateX distributed under the GNU GPL. LaTeXDraw is developed in java, so it’s independent of the OS. It’s available in English, in Spanish and in French.
Please see the following link (https://hhh123.wordpress.com/2008/07/26/latex-pstricks-flowchart-example-by-hhh/)