added option to only show the most recent images