--- image_caption.js.orig 2011-08-23 14:02:47.000000000 -0400 +++ image_caption.js 2011-08-23 14:02:55.000000000 -0400 @@ -31,6 +31,7 @@ Drupal.behaviors.image_caption = { //Display inline block so it doesn't break any text aligns on the parent contatiner $(this).wrap(""); + $(this).parent().addClass($(this).attr('class')); $(this).parent().addClass('image-caption-container-' + alignment); // Add dimensions, if available