title: loading images from disk in iPhone app is slow
body: <p>In my iPhone app, I am using the iPhone's camera to take a photo and save it do disk (the application's documents folder). This is how i save it:</p>
  
  <pre><code>[UIImageJPEGRepresentation(photoTaken, 0.0) writeToFile:jpegPath atomically:YES];
  </code></pre>
  
  <p>Using the most compression, I figured reading the image from disk would be quick. But its not! I use the image as the background image for a button in one of my views. I load it like this:</p>
  
  <pre><code>[self.frontButton setBackgroundImage:[UIImage imageWithContentsOfFile:frontPath] forState:UIControlStateNormal];
  </code></pre>
  
  <p>When I navigate to the view with this button, it is slow and choppy. How do I fix this?</p>