docs: function _reduceImageOptimFunc(prev, next) {
          return prev.then(function (res) {
              return Q.all(next.map(function (filename) {
                  return modes[mode](new File(filename), algorithms, opts);
              }))
              .then(function (stepRes) {
                  return res.concat(stepRes);
              });
          });
      }