Assignment 5: Completed implementation of cachedImageURLs