Drupal 7.20 changes the way image styles are handled

Drupal 7.20 update changes the way image styles are handled. Now, a security token is added to an image style url, without which, it will not show. This makes image_style_path() virtually useless, and call for usage of image_style_url() instead.

Old code:

<?php
$url
= file_create_url(image_style_path('style', $image['field_image']['#items']['0']['uri']));
?>

New code:

<?php
$url
= image_style_url('style', $image['field_image']['#items']['0']['uri']);
?>