24,26c24
<   
<   $client_width = imagematrix_adaptive_block($options);
<   $block_styles[] = 'width: ' . $client_width . 'px';
---
>   $block_styles[] = 'width: ' . $options['block_width'] . 'px';
140,159d137
< }
< 
< function imagematrix_adaptive_block($options) {
<   $styles = $options['styles'];
<   $client_width = $options['block_width']; // default
<   if (isset($_COOKIE['imagematrix'])) {
<     if (is_numeric($_COOKIE['imagematrix'])) {
<       for ($i = 1; $i <= variable_get('imagematrix_breakpoint_count', 5); $i++) {
<         if (is_numeric($styles['breakpoint_' . $i])) {
<           if ($_COOKIE['imagematrix'] >= $styles['breakpoint_' . $i]) {
<             $client_width = $options['block_width'] * $styles['style_' . $i] / 100;
<           }
<         }
<       }
<     } else {
<       setcookie("imagematrix", "", time() -1); // delete the mangled cookie
<     }
<   }
<   //echo $client_width . " - ". $_COOKIE['imagematrix'];
<   return $client_width;
