title: Umbraco content image data type returns empty
body: <p>This macro working on localhost but doesn't work on live (img src returns empty). </p>
  
  <p>When I change </p>
  
  <pre><code>&lt;xsl:variable name="url" select="umbraco.library:GetMedia($media, 0)" /&gt;
  </code></pre>
  
  <p>value 0 by 1 or -1 in this row, it is working but when I published site img src it returns empty. I use content image.</p>
  
  <pre><code>&lt;!DOCTYPE xsl:stylesheet [
    &lt;!ENTITY nbsp "&amp;#x00A0;"&gt;
  ]&gt;
  &lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon"
    xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes" 
    xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath" 
    xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions" 
    xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets" 
    xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings" 
    xmlns:msxml="urn:schemas-microsoft-com:xslt" 
    xmlns:umbraco.library="urn:umbraco.library" 
    exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets"
  &gt;
    &lt;xsl:output method="xml" omit-xml-declaration="yes" /&gt;
  
    &lt;xsl:param name="currentPage" /&gt;
  
    &lt;xsl:template match="/"&gt;
      &lt;div id="slider-wrapper"&gt;
        &lt;div id="slider" class="nivoSlider"&gt;
          &lt;xsl:for-each select="umbraco.library:GetXmlNodeById(1102)/*[@isDoc]"&gt;
            &lt;xsl:variable name="media" select="number(resim)" /&gt;
            &lt;xsl:variable name="url" select="umbraco.library:GetMedia($media, 0)" /&gt;
            &lt;img src="{$url/umbracoFile}" width="726" height="385" alt=""&gt;
              &lt;xsl:attribute name="title"&gt;#htmlcaption&lt;xsl:value-of select="position()" /&gt;&lt;/xsl:attribute&gt;
            &lt;/img&gt;
          &lt;/xsl:for-each&gt;
        &lt;/div&gt;
        &lt;xsl:for-each select="umbraco.library:GetXmlNodeById(1102)/* [@isDoc]"&gt;
          &lt;div class="nivo-html-caption"&gt;
            &lt;xsl:attribute name="id"&gt;htmlcaption&lt;xsl:value-of select="position()" /&gt;&lt;/xsl:attribute&gt;
            &lt;span class="slider_news_hdr"&gt;&lt;xsl:value-of select="baslik" /&gt;&lt;/span&gt;
            &lt;span class="slider_news_text"&gt;&lt;xsl:value-of select="aciklama" /&gt;&lt;/span&gt;
          &lt;/div&gt;
        &lt;/xsl:for-each&gt;
      &lt;/div&gt;
    &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>