code: function (image) {
        for (var i = 0; i < cache.length; i++) {
          if (cache[i].src === image.src) {
            return cache[i];
          }
        }
        cache.push(image);
        return image;
      }
docs: Wrapper for cache