A Case-Based Approach to Image Recognition