update script to save images to folder; update gitignore for TeX and img folder; add tex