{% macro avatar(user_id=None, css_style=None, size="avatar-small") %}
{% set user_info = frappe.utils.get_user_info_for_avatar(user_id) %}
{% if user_info.image %}
{% else %}
{{ frappe.utils.get_abbr(user_info.name).upper() }}
{% endif %}
{% endmacro %}