diff --git a/media.inc b/media.inc
index 53c10ec..6f79e13 100644
--- a/media.inc
+++ b/media.inc
@@ -69,6 +69,20 @@ class MigrateDestinationMedia extends MigrateDestinationFile {
         // Get the height and width parameters if present
         preg_match('|width=[\'"]([^\'"]+)[\'"]|i', $matches[0], $width);
         preg_match('|height=[\'"]([^\'"]+)[\'"]|i', $matches[0], $height);
+        // Get the height and width parameters if present, also consider the inline css
+        preg_match('|width[\:\=][\'",\s]([^\'"(px)]+)[\'",(px)\;]|i', $matches[0], $width);
+        preg_match('|height[\:\=][\'",\s]([^\'"(px)]+)[\'",(px)\;]|i', $matches[0], $height);
+        preg_match('|alt[\:\=][\'",\s]([^\'"]+)[\'",\;]|i', $matches[0], $alt);
+        preg_match('|float[\:]([^;"]+)|i', $matches[0], $float);
+
+        // image float
+        if ($float) {
+          $image_info['attributes']['style'] = "float:" . $float[1] . ";";
+        }
+        // image alt
+        if ($alt) {
+          $image_info['attributes']['alt'] = $alt[1];
+        }
         // image width
         if ($width) {
           $image_info['attributes']['width'] = $width[1];
