I found an this code here and modified it to fit my needs. I\'m wanting to iterate through a provided directory and make a list of any jpg\'s and pngs and add them to a list