changed file management (to 1 txt file per image)