Simple directory image scraper in Ruby