saves photo names into continuous file