A System for Automatic Image Categorization