def get_profile_image_urls_for_user(user, request=None):
 try:
  if user.profile.has_profile_image:
   urls = _get_profile_image_urls(_make_profile_image_name(user.username), get_profile_image_storage(), version=user.profile.profile_image_uploaded_at.strftime('%s'))
  else:
   urls = _get_default_profile_image_urls()
 except UserProfile.DoesNotExist:
  urls = _get_default_profile_image_urls()
 if request:
  for (key, value) in urls.items():
   urls[key] = request.build_absolute_uri(value)
 return urls

def get_profile_image_urls_for_user ( user , request = None ) : try : if user . profile . has_profile_image : urls = _get_profile_image_urls ( _make_profile_image_name ( user . username ) , get_profile_image_storage ( ) , version = user . profile . profile_image_uploaded_at . strftime ( '%s' ) ) else : urls = _get_default_profile_image_urls ( ) except UserProfile . DoesNotExist : urls = _get_default_profile_image_urls ( ) if request : for ( key , value ) in urls . items ( ) : urls [ key ] = request . build_absolute_uri ( value ) return urls
return a dict {size:url} for each profile image for a given user .