The Role of Prototype Learning in Hierarchical Models of Vision