Avatar compatibility improvements

https://github.com/incuna/django-user-management/commit/98e27c58d975f2d847dfe5cbe138d4b75529cd36