Ruby script for finding unused images in a given directory