fix(ui): Corrected bad stretching of non-square, large avatars. Now upscaling by width.

Fixes #5602
Merge pull request #7000 from Srokap/ticket_5602

fix(ui): Corrected bad stretching of non-square, large avatars. Now upscaling by width.