picture.py: Assign unique names to pictures

This way, we avoid overwriting files with the same name that come from
different folders.

Remaining points that need addressing:
- This needs a few more tests
- The pictures inside every folder don't get sorted. Ideally 00001.jpg
  would have been taken before 00002.jpg on the same day.