Selection and annotation of images for specialized knowledge bases