title: Get only image files from directory
body: <p>I am storing image file in cache directory . Later I want to get all image file list from cache directory. I am using following code to get all files.</p>
  
  <pre><code>[fileManager contentsOfDirectoryAtPath:pathForCacheDirectory error:&amp;error]
  </code></pre>
  
  <p>How to separate image files from this. Image file can be any format.</p>
  
  <p>Thanks in advance.</p>