def is_eligible_file( filename ):
    """ Based on the file name, decide whether the file is likely to contain image data """
    eligible = False
    if ( filename.endswith( '.png' ) or filename.endswith( '.jpg' ) ):
        eligible = True
    return eligible