Display node author picture through tpl file I am writing my custom node--blog.tpl.php for my Drupal7 based site. I want to print the author image of the blog so in my tpl file i include the following:

$user = user_load($user-&gt;uid);
  print theme_image_style(
                array(

                    'path' =&gt; $user-&gt;picture-&gt;uri,
                    'attributes' =&gt; array(
                        'class' =&gt; 'in-blog-user'
                    )
                )
            );


However, it does not display any image and i get a error as : 

The requested page "/sites/default/files/styles//public" could not be found

What am i doing wrong?

Regards

PS: my pictures directory is "pictures"
The following lines did it:

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