Better sync_photos script.