set unique ID to all jpg in derectory tree