Given that avatars are resized, it would be more accurate to display them in their entirety when clicked. For example, mine is rectangular when viewed at full size, not square as shown in profile messages.
And in any case, it's better not to display it even at full size, rather than displaying it full size in a new window with a white background...
To fix this, all it takes is a small line of code and 10 seconds...