How to get User Avatar

Hi!

I am trying to pull the user avatar to display it on a plugin.

This code used to work on elgg 1.8.1 and 1.8.2 but no longer in elgg 1.8.3

$_SESSION['user']->getIcon('large');

What's the correct way to pull it in elgg 1.8.x?