--- yoxview.module.orig	2010-05-09 06:32:18.000000000 -0500
+++ yoxview.module	2010-11-03 09:43:06.073570001 -0500
@@ -6,6 +6,8 @@
  */
 function yoxview_library() {
   // YoxView
+  global $base_url;
+
   $libraries['yoxview'] = array(
     'title' => 'YoxView',
     'website' => 'http://www.yoxigen.com/yoxview/',
@@ -19,7 +21,7 @@
       array(
         'type' => 'setting',
         'data' => array(
-          'yoxviewPath' => drupal_get_path('module', 'yoxview') . '/yoxview/',
+          'yoxviewPath' => $base_url .'/'. drupal_get_path('module', 'yoxview') . '/yoxview/',
         ),
       ),
     ),
@@ -73,11 +75,12 @@
  */
 function yoxview_field_formatter_view($entity_type, $entity, $field, $instance, $langcode, $items, $display) {
   $element = array();
-
   // Check if we're using YokView.
   if (substr_compare($display['type'], 'yokview_', 0, 8)) {
     // Generate the image using the image formatter, using the correct type name.
     $display['type'] = 'image_' . substr($display['type'], 8);
+    $display['settings']['image_link'] = 'file';
+    $display['settings']['image_style'] = str_replace('image_link_file__', '', $display['type']);
     $element = image_field_formatter_view($entity_type, $entity, $field, $instance, $langcode, $items, $display);
 
     // Inject the YoxView.
