diff -Bruwp /tmp/epsacrop/epsacrop.install epsacrop/epsacrop.install
--- /tmp/epsacrop/epsacrop.install	2012-05-02 09:19:16.000000000 +0200
+++ epsacrop/epsacrop.install	2012-05-15 09:25:54.600390069 +0200
@@ -103,3 +103,82 @@ function epsacrop_install() {
  */
 function epsacrop_uninstall() {
 }
+
+/**
+ * Converts all the epsacrop coordenates to a new machine_name format.
+ * Issue related: http://drupal.org/node/1396500
+ */
+function epsacrop_update_7201(&$sandbox) {
+
+  // Get all the EPSACROP files
+  $result = db_select('epsacrop_files', 'ef')
+    ->fields('ef', array())
+    ->execute()
+    ->fetchAllKeyed();
+
+  // if no result, stop here.
+  if (!$result) {
+    return;
+  }
+
+  // Set the Sandbox data
+  if (!isset($sandbox['progress'])) {
+    $sandbox['progress'] = 0;
+    $sandbox['max'] = count($result) - 1;
+  }
+
+  // Get all the EPSACROP image styles
+  $epsacrop_styles = _epsacrop_load_styles();
+
+  foreach ($result as $fid => $coords) {
+    
+    // Old coordenates
+    $coords_old = drupal_json_decode(unserialize($coords));
+
+    // New Coordenates
+    $coords_new = array();
+
+    // Find the right coords
+    foreach ($coords_old as $key => $item) {
+      if (!empty($item)) {
+
+        // Iterates each crop coords by image style
+        foreach ($item as $name_old => $data) {
+          
+          // Extract the ieid and the isid
+          preg_match("/epsacrop\-([0-9]*)\-([0-9]*)/", $name_old, $matches);
+
+          $ieid = $matches[1];
+          $isid = $matches[2];
+
+          // Find the machine name of the image style by the isid
+          foreach ($epsacrop_styles as $style) {
+            if ($style['isid'] == $isid) {
+
+              $style_name = $style['name'];
+            }
+          }
+
+          // Rename the object name with the new format
+          $coords_new[$key]['epsacrop-' . $ieid . '-' . $style_name] = $data;
+        }
+      }
+      else {
+        $coords_new[$key] = NULL;
+      }
+    }
+
+    // Encode the new coordenates
+    $coords_new = serialize(drupal_json_encode($coords_new));
+
+    // Save the changes
+    $record = array('fid' => $fid, 'coords' => $coords_new);
+    drupal_write_record('epsacrop_files', $record, 'fid');
+
+    $sandbox['progress']++;
+  }
+
+  // Check if finished the progress
+  $sandbox['#finished'] = empty($sandbox['max']) ? 1 : ($sandbox['progress'] / $sandbox['max']);
+
+}
diff -Bruwp /tmp/epsacrop/epsacrop.module epsacrop/epsacrop.module
--- /tmp/epsacrop/epsacrop.module	2012-05-02 09:19:16.000000000 +0200
+++ epsacrop/epsacrop.module	2012-05-14 18:26:13.202944385 +0200
@@ -158,8 +157,10 @@ function epsacrop_dialog($entity_name, $
   foreach ($styles['styles'] as $style_name) {
     $style = _epsacrop_load_style($style_name);
     $effect = _epsacrop_get_effect($style);
-    $id = 'epsacrop-' . $effect['ieid'] . '-' . $effect['isid'];
-    $out .='<li class="epsacrop-presets-menu-li"><a data-bgcolor="' . $effect['data']['jcrop_settings']['bgcolor'] . '" data-bgopacity="' . $effect['data']['jcrop_settings']['bgopacity'] . '" data-aspect-ratio="' . $effect['data']['jcrop_settings']['aspect_ratio'] . '" id="' . $id . '" href="javascript:Drupal.EPSACrop.crop(\'' . $id . '\');" rel="' . $effect['data']['width'] . 'x' . $effect['data']['height'] . '"' . ($i++ == 0 ? ' class="selected"' : '') . '>' . $style['name'] . '</a></li>';
+    $ieid = key($effect);
+    $effect = current($effect);
+    $id = 'epsacrop-' . $ieid . '-' . $style_name;
+    $out .='<li class="epsacrop-presets-menu-li"><a data-bgcolor="' . $effect['data']['jcrop_settings']['bgcolor'] . '" data-bgopacity="' . $effect['data']['jcrop_settings']['bgopacity'] . '" data-aspect-ratio="' . $effect['data']['jcrop_settings']['aspect_ratio'] . '" id="' . $id . '" href="javascript:Drupal.EPSACrop.crop(\'' . $id . '\');" rel="' . $effect['data']['width'] . 'x' . $effect['data']['height'] . '"' . ($i++ == 0 ? ' class="selected"' : '') . '>' . $style_name . '</a></li>';
   }
   $out .='</ul>' . "\n";
   $out .='</div>' . "\n";
@@ -401,7 +402,9 @@ function epsacrop_crop_image(stdClass $i
         if (!empty($style)) {
           $effect = _epsacrop_get_effect($style);
           if (!empty($effect)) {
-            $preset = 'epsacrop-' . $effect['ieid'] . '-' . $effect['isid'];
+            $ieid = key($effect);
+            $effect = current($effect);
+            $preset = 'epsacrop-' . $ieid . '-' . $style_name;
             $coord = $coords[$fid][$preset];
             if (!empty($coord)) {
               if (image_crop($image, $coord['x'], $coord['y'], $coord['w'], $coord['h'])) {
@@ -661,7 +664,7 @@ function _epsacrop_get_effect($style) {
   
   foreach ($style['effects'] as $eid => $effect) {
     if ($effect['module'] == 'epsacrop') {
-      return $effect;
+      return array($eid => $effect);
     }
   }
   return FALSE;
