title: Why is local image turned 90 degrees on UIWebView
body: <p>I have an application that is set in landscape mode because of the content it contains. One of the things I want to do is take a picture of a piece of paper. I present the UIImagePickerController locked in portrait mode because it fits the paper size. After the user takes the picture I load that image as a background on a UIWebView. The reason I use a webview is because sometimes I need to load a .pdf there as well. Anyway, I'm setting the background using CSS. Here is the code...</p>
  
  <pre><code>//img is the path to an image.
  myHtml = [NSString stringWithFormat:
                      @"&lt;html&gt;&lt;head&gt;"
                      "&lt;/head&gt;"
                      "&lt;body&gt;&lt;img src='%@'&gt;&lt;/body&gt;&lt;/html&gt;", img];
  
  [resume loadHTMLString:myHtml baseURL:baseURL]; 
  </code></pre>
  
  <p>The problem is, the image is displayed in landscape when the app returns to the UIWebView. Everything else is normal as far as text etc. Is there some reason that images are rotated 90 degrees to fit properly or something? I have tried pretty much everything with no luck. </p>
  
  <p>The other thing is that we I retake a picture and reload the webView the old image remains.</p>