Learning And Prior Knowledge Shape Cognitive Representations For Complex Images