function widget($args, $instance)
 {
     // Output
     extract($args);
     $home = get_page_by_path('home');
     $home_images = get_post_meta($home->ID, 'home_widget_images', true);
     foreach ($home_images as $img) {
         if ($img['image_widget_id'] == $instance['image_widget_id']) {
             $title = apply_filters('widget_title', $img['title']);
             $src = cuisine_get_img_src($img['image_id'], 'tile');
             $link = $img['link'];
             $link_target = $img['link_target'];
         }
     }
     $fulllink = '';
     $fulllinkend = '';
     if ($link != '' && $link != '#') {
         $fulllink = '<a href="' . $link . '" target="' . $link_target . '">';
         $fulllinkend = '</a>';
     }
     echo $before_widget;
     echo '<div class="image-widget">';
     if ($title != '' && $title != ' ') {
         echo '<h2 class="widgettitle">' . $fulllink . $title . $fulllinkend . '</h2>';
     }
     echo $fulllink . '<img src="' . $src . '" class="widget-image"/>' . $fulllinkend;
     echo '</div>';
     echo $after_widget;
 }
function cuisine_the_img_src($pid, $size = 'thumbnail')
{
    echo cuisine_get_img_src($pid, $size);
}