Automatically purge images outside selected folders from database