addressed image overwrite issues with file names, up to 9