Reads directory name where image files (and temporary tex file) are stored. Final output in pwd