A study on the role of memory representations in visual recognition