title: WiX not rendering images correctly
body: <p>I'm trying to write a custom WiX dialog which, as part of its workflow, shows an error image in response to certain conditions. However, WiX appears to be ignoring my dimensions and displaying as it feels fit. Here's my code:</p>
  
  <pre><code>&lt;Binary Id="WixUI_FailureImg" SourceFile="$(sys.SOURCEFILEDIR)..\Resources\Failure.ico" /&gt;
  &lt;Control Id="TestResult_Failure" Type="Icon" IconSize="16" X="15" Y="206" Width="16" Height="16" Text="WixUI_FailureImg"&gt;
      &lt;Condition Action="hide"&gt;LOGON_VALID = "1"&lt;/Condition&gt;
      &lt;Condition Action="show"&gt;LOGON_VALID = "0"&lt;/Condition&gt;
  &lt;/Control&gt;
  </code></pre>
  
  <p>I've included a snippet of the resulting dialog below, with the original image (a 16x16 .ico) in the background. As you can see, the image has been scaled upwards, and there is no transparency around the image. I've tried 8-bit and 24-bit bitmaps as well icons, but they all produce the same result. Is there something that I am doing obviously wrong?</p>
  
  <p><img src="https://i.stack.imgur.com/V1M7o.png" alt="example of borked image"></p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>In case you were wondering how the dynamic images works, here's the relevant section:</p>
  
  <pre><code>&lt;Control Id="TestResult_Success" Type="Icon" IconSize="16" X="15" Y="210" Width="12" Height="12" Text="WixUI_SuccessImg"&gt;
      &lt;Condition Action="hide"&gt;LOGON_VALID = "0"&lt;/Condition&gt;
      &lt;Condition Action="show"&gt;LOGON_VALID = "1"&lt;/Condition&gt;
  &lt;/Control&gt;
  &lt;Control Id="TestPrompt_Success" Type="Text" X="35" Y="210" Width="322" Height="10" Text="!(loc.SqlSelectDlgConnectionValid)"&gt;
      &lt;Condition Action="hide"&gt;LOGON_VALID = "0"&lt;/Condition&gt;
      &lt;Condition Action="show"&gt;LOGON_VALID = "1"&lt;/Condition&gt;
  &lt;/Control&gt;
  &lt;Control Id="TestResult_Failure" Type="Icon" IconSize="16" X="15" Y="210" Width="12" Height="12" Text="WixUI_FailureImg"&gt;
      &lt;Condition Action="hide"&gt;LOGON_VALID = "1"&lt;/Condition&gt;
      &lt;Condition Action="show"&gt;LOGON_VALID = "0"&lt;/Condition&gt;
  &lt;/Control&gt;
  &lt;Control Id="TestPrompt_Failure" Type="Text" X="35" Y="210" Width="322" Height="10" Text="!(loc.SqlSelectDlgConnectionInvalid)"&gt;
      &lt;Condition Action="hide"&gt;LOGON_VALID = "1"&lt;/Condition&gt;
      &lt;Condition Action="show"&gt;LOGON_VALID = "0"&lt;/Condition&gt;
  &lt;/Control&gt;
  </code></pre>
  
  <p>As you can guess from the screenshot, the page is related to establishing a SQL connection; I have a custom action that creates a connection string based on the user's input, and attempts to validate it. If it's valid (<code>LOGON_VALID = "1"</code>), I get a tick image and some text to say everything is good, otherwise I get a warning icon and some text to warn the user. Of course, the Next button is also controlled by this value.</p>