Assignment 5: add local file cache for images.