diff --git a/resp_img.module b/resp_img.module
index 7573f78..7858474 100644
--- a/resp_img.module
+++ b/resp_img.module
@@ -335,7 +335,7 @@ function theme_picture($variables) {
     'image' => $img,
   );
   // All breakpoints and multipliers.
-  foreach ($variables['breakpoints'] as $breakpoint_name => $multipliers) {
+  foreach ($variables['breakpoints']['mapping'] as $breakpoint_name => $multipliers) {
     $breakpoint = breakpoints_breakpoint_load_by_fullkey($breakpoint_name);
     if ($breakpoint) {
       $new_images = array();
