code: function(err, data){
  
      if (err) throw Error(data.toString());
  
      var baseDir = path.dirname(this.get('file'));
      var filePath;
      var imagesDef = this.imagesDef;
  
      forEach(data, function(def, file){
        filePath = path.relative(baseDir, file);
        filePath = filePath.replace(/\\+/g, '/');
        imagesDef[filePath] = def;
      });
  
      this._setPos();
    }
docs: 设置图片配置，Api.getImagesSize函数回调
  @param {Error} err 错误信息
  @param {string|json} data 读取图片大小接口返回数据，包括图片大小和图片类型
  @next this._setPos