$settings = array(
'content_type' => 'node',
'content_id' => $node->nid,
'entity' => $node,
'stars' => 5,
'field_name' => 'field_star_rating',
'autosubmit' => TRUE,
'allow_clear' => FALSE,
'langcode' => $node->language,
'text' => 'none', // options are none, average, smart, user, and dual
'tag' => 'vote',
'type' => 'fivestar',
'allow_revote' => true,
'allow_ownvote' => true,
'description' => '',
'style' => 'user', // options are average, dual, smart, user
'widget' => array( 'name' => 'basic', 'css' => drupal_get_path('module', 'fivestar') . '/widgets/basic/basic.css' ),
'process' => array('fivestar_expand'),
'theme_wrappers' => array('form_element'),
'values' => array(
'user' => 0,
'average' => 0,
'count' => 0,
),
'settings' => array(
'style' => 'user',
'text' => 'none',
),
);
global $user;
$fivestar_values = fivestar_get_votes('node', $node->nid, 'vote', $user->uid);
$fivestar_form = drupal_get_form('fivestar_custom_widget', $fivestar_values, $settings);
$fivestar_form = render($fivestar_form);
style=“background-image: <?php print $path_to_image; ?>”
<?php print file_create_url($node->field_service_image[LANGUAGE_NONE][0]['uri']); ?>