diff --git a/imagefield_crop.module b/imagefield_crop.module
index a675e94..057fffa 100644
--- a/imagefield_crop.module
+++ b/imagefield_crop.module
@@ -52,6 +52,13 @@ function imagefield_crop_field_load($entity_type, $entities, $field, $instances,
  * Implements hook_field_prepare_view().
  */
 function imagefield_crop_field_prepare_view($entity_type, $entities, $field, $instances, $langcode, &$items) {
+  // Before render of image, we should set actual width and height values to pass to image attributes.
+  foreach ($items as &$item) {
+    if ((!isset($item[0]['width']) || !isset($item[0]['height'])) && (isset($item[0]['cropbox_width']) && isset($item[0]['cropbox_height']))) {
+      $item[0]['width'] = $item[0]['cropbox_width'];
+      $item[0]['height'] = $item[0]['cropbox_height'];
+    }
+  }
   image_field_prepare_view($entity_type, $entities, $field, $instances, $langcode, $items);
 }
 
