A Simple Cache Model for Image Recognition