Output multiple numbered image files when necessary, rather than writing the same...