factor out set_avatar logic
factor out set_avatar logic

pycontribs/jira,milo-minderbinder/jira,m42e/jira,akosiaris/jira,jameskeane/jira-python,VikingDen/jira,akosiaris/jira,kinow/jira,dwmarshall/pycontribs-jira,dbaxa/jira,rayyen/jira,systemadev/jira-python,awurster/jira,pycontribs/jira,tsarnowski/jira-python,VikingDen/jira,m42e/jira,tsarnowski/jira-python,coddingtonbear/jira,milo-minderbinder/jira,systemadev/jira-python,kinow/jira,rayyen/jira,stevencarey/jira,awurster/jira,dwmarshall/pycontribs-jira,dbaxa/jira,stevencarey/jira,coddingtonbear/jira,jameskeane/jira-python