def is_valid_filename(self, image_node):
src = self.parser.getAttribute(image_node, attr='<STR_LIT:src>')<EOL>if not src:<EOL><INDENT>return False<EOL><DEDENT>if self.badimages_names_re.search(src):<EOL><INDENT>return False<EOL><DEDENT>return True<EOL>
\
        will check the image src against a list
        of bad image files we know of like buttons, etc...