It depends on the number of photos.
If there is only one image per user, perhaps all in one directory.
However, if you have albums and such, there may be millions of photos with all the photos of users in one folder. This would be very slow to find. Then I would go with one folder per user.
, . .