'Returns metadata about a user\'s profile image.'

@staticmethod
def get_profile_image(user_profile, user, request=None):

    data = {'has_image': user_profile.has_profile_image}
    urls = get_profile_image_urls_for_user(user, request)
    data.update({'{image_key_prefix}_{size}'.format(image_key_prefix=PROFILE_IMAGE_KEY_PREFIX, size=size_display_name): url for (size_display_name, url) in urls.items()})
    return data
