So I was watching this video from Chris which was very helpful:
When he is upload the image to the database the image name is a randomly generated ID. Which is awesome, but if you have tons of users whats the chance that there are conflicts using this strategy?
he uses UUID().uuidstring