Avatar compatibility improvements

https://github.com/incuna/django-user-management/commit/00514629d323efdaaaa7df6d77fa3241af4ed103