re-add caching of template files (but not SHP), dont draw out of bounds cells and if OutFile arg is save with input file appended with .png, instead of replacing the .ini part of the filename with .png which fails if the file name doesnt contain .ini