title: embedded image in svg disappear on converting svg to png
body: <p>Please help. I was using php Imagick library to successfully convert svg (including embedded png image in <code>&lt;image/&gt;</code> tag) to png image till recently. I guess after a few updates on ubuntu the embedded png image stopped appearing in the converted image from svg.</p>
  
  <pre><code>$svg =  json_decode($_POST['svgdata']);
  $svg = '&lt;?xml version="1.1" encoding="UTF-8" standalone="no"?&gt;'.$svg;
  $im = new Imagick();
  $success = $im-&gt;readImageBlob($svg);
  $im-&gt;setImageFormat("png24");
  $im-&gt;writeImage('png_img/var.png');
  </code></pre>
  
  <p>If I echo $svg it gives me a correct image. <img src="https://i.stack.imgur.com/VA6by.png" alt="output of echo $svg;"></p>
  
  <p>whereas the saved image is<img src="https://i.stack.imgur.com/QCQBq.png" alt="enter image description here">.</p>
  
  <p>For reference:</p>
  
  <pre><code>$svg = '&lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt;
  &lt;svg xmlns:xlink="http://www.w3.org/1999/xlink" style="overflow: hidden; position: relative; -moz-user-select: text;" xmlns="http://www.w3.org/2000/svg" width="794" version="1.1" height="122"&gt;
  &lt;image class="barcode" style="-moz-user-select: text;" xlink:href="images/52aab69d.png" preserveAspectRatio="none" height="40" width="266" y="30" x="380"&gt;&lt;/image&gt;
  &lt;rect class="ref" style="-moz-user-select: text;" stroke="#000" fill="#000000" ry="0" rx="0" r="0" height="18" width="18" y="15" x="10"&gt;&lt;/rect&gt;&lt;/svg&gt;';
  </code></pre>