correction to zero file check. new script to filter images