How to use theme imagecahe in drupal 7

    We use theme imagecache in drupal 6. but in drupal 7 we have to use core image style an that can be used as below:
    <?php
    $image
    = theme('image_style', array('style_name' => 'profile_picture', 'path' => 'path uri', 'alt' => 'alt text', 'title' => 'title'));
    ?>
    5
    Average: 5 (1 vote)