code: function get(src) {
        var defer = $q.defer();
  
        _checkImgCacheReady()
          .then(function() {
            ImgCache.isCached(src, function(path, success) {
              if (success) {
                defer.resolve(path);
              } else {
                defer.reject();
              }
            }, defer.reject);
          })
          .catch(defer.reject);
  
        return defer.promise;
      }
docs: Gets file local url if it present in cache.
  @param {string} src - image source url.