title: determine if file is an image
body: <p>I am looping through a directory and copying all files.  Right now I am doing <code>string.EndsWith</code> checks for <code>".jpg"</code> or <code>".png"</code>, etc . .</p>
  
  <p>Is there any more elegant way of determining if a file is an image (any image type) without the hacky check like above?</p>