Recognizing Visual Categories by Commonality and Diversity