How to change the size of the avatar in Drupal 7? When i visualize user avatar in Drupal 7 using this code: 

$account = user_load(2);
print theme('user_picture', array('account' =&gt; $account));


The following image is generated:

&lt;a href="/drupal/en/user/2" title="View user profile."&gt;&lt;img typeof="foaf:Image" src="http://localhost/drupal/sites/default/files/styles/thumbnail/public/pictures/picture-2-1303917742.jpg" alt="ksu's picture" title="ksu's picture"&gt;&lt;/a&gt;


How can i control such parameters as size of the image, title, alt?
And how can i get rid of the link (or change the path) which is generated automatically with the image? 

&lt;a href="/drupal/en/user/1" title="View user profile."&gt;...&lt;a/&gt;
You should use theme_image_style instead.

**Update:

Example setting width/height attributes by hand (until it's resolved in Drupal core):

global $user;
$user = user_load($user-&gt;uid);
print theme('image_style', array( 'path' =&gt;  $user-&gt;picture-&gt;uri, 'style_name' =&gt; 'thumbnail', 'width' =&gt; '150', 'height' =&gt; '162'));


Remember to change your image style 'thumbnail' in this case to your desired width/height. Now that I think about it you don't necessarily need to use theme_image_style, you could just edit the image style thumbnail presets and get the desired results. If you want width/height HTML attributes, use the example above.