added new a new method that makes sure that uploaded images do not overwrite themselves but give them unique names