Making temp image path a full path based on location of the script, so it doesn't rely on the working directory.