Get profile icon based on user name

I'm trying to get the profile icon with menu of a user based on their name or id.  All my attempts to do this via get_entities_from_metadata() have failed.  Anybody got any ideas??