MOD: minor changes to process img file and gitignore.