Implemented a basic image cache for image previews in the detail view