Updated script to find only specific images while everything else in the directory is ignored appropriately.