Use NSCache to cache rendered gallery item thumbnails

- improves gallery view performance