'Get list of images containing imword.'

def candidates_from_word(self, imword):

    im_ids = self.con.execute(('select    distinct    imid    from    imwords    where    wordid=%d' % imword)).fetchall()
    return [i[0] for i in im_ids]
