write filenames to log, check that region around box is white