[ticket/11552] Fix non-square avatars in notifications

Old code was changing all avatars to square. This code
will keep 50px height limit without changing aspect ratio.

PHPBB3-11552