Is it possible to modifiy it so: if I \include it another TeX file it is compiled as a picture in a document, while if it is compiled alone (say:pdflatex myfile.tex) it results in a standalone pdf file as the unmodified file?