diff --git a/Plugin.php b/Plugin.php
index <HASH>..<HASH> 100644
--- a/Plugin.php
+++ b/Plugin.php
@@ -80,7 +80,7 @@ class Plugin extends PluginBase
             if (!$preview)
                 return $input;
 
-            return preg_replace('|\<img alt="([0-9]+)" src="image" \/>|m', 
+            return preg_replace('|\<img src="image" alt="([0-9]+)"([^>]*)\/>|m',
                 '<span class="image-placeholder" data-index="$1">
                     <span class="dropzone">
                         <span class="label">Click or drop an image...</span>
Fix for change to php-markdown