Fix for upload image when user is not nil