--- image_caption.js	2009-10-12 07:46:58.000000000 -0700
+++ image_caption.new.js	2009-10-12 07:46:37.000000000 -0700
@@ -5,7 +5,9 @@ $(document).ready(function(){
     var imgheight = $(this).height();
     var captiontext = $(this).attr('title');
     var alignment = $(this).attr('align');
-    $(this).attr({align:""});
+    if (!alignment) {
+      alignment = $(this).css("float");
+    }
     $(this).wrap("<div class=\"image-caption-container\" style=\"float:" + alignment + "\"></div>");
     $(this).parent().width(imgwidth);
     $(this).parent().append("<div class=\"image-caption\">" + captiontext + "</div>");
