title: Get last modified file in a directory
body: <p>Is there a way to select only the last file in a directory (with the extensions <code>jpg|png|gif</code>?)</p>
  
  <p>Or do I have to parse the entire directory and check using <code>filemtime</code>?</p>