Examining visual representations in mind and machine