title: JQuery Dialog with constant aspect ratio
body: <p>I need to display an image in a resizable dialog (so far all the specific image popup libraries I have tried do not fit my needs).</p>
  
  <p>All I want to do is maintain the aspect ratio during resizing. Sounds easy, but it's not.</p>
  
  <p>I thought something like this might work, but no dice:</p>
  
  <pre><code>var d = $("").dialog({title:title, width:400, height:400});
  d.resizable( "option", "aspectRatio", true );
  </code></pre>
  
  <p>Any pointers greatly appreciated, tks</p>