Gulp dest.on is not a function
<p>I'm getting that annoying <strong>dest.on error</strong> on my gulp task for <strong>optimizing images</strong> using <code>gulp-imagemin</code>. I have a somewhat uncommon set up going here, using <code>gulp-load-plugins</code> in order to have all my tasks separate from the actual gulpfile.</p>

<p>On the task in question I'm requiring:</p>

<pre><code>"gulp-imagemin": "^3.0.1",
"gulp-util": "^3.0.7",
</code></pre>

<p>And the idea is to log a message when the images are done for each of the streams, <code>gulp.dest()</code> doesn't seem to like something about my <code>gutil.log()</code> method:</p>

<pre><code>module.exports = function(gulp, plugins, config) {

  return function()
  {
    var stream =
        // Optimize Images for Version A //
        gulp.src(config.assetsDir + '/a/images/*')
            .pipe(plugins.util.log('Hello'))
            .pipe(plugins.imagemin({
                progressive: true,
                optimizationLevel: 7,
                svgoPlugins: [{removeViewBox: false}],
                use: [plugins.pngquant()]
            }))
            .pipe(gulp.dest(config.publicDir + 'images/a/'))

        // Optimize Images for Version B //
        gulp.src(config.assetsDir + '/b/images/*')
            .pipe(plugins.imagemin({
                progressive: true,
                optimizationLevel: 7,
                svgoPlugins: [{removeViewBox: false}],
                use: [plugins.pngquant()]
            }))
            .pipe(gulp.dest(config.publicDir + 'images/b/'))
            .pipe(plugins.util.log("Task Done!"))
  }
};
</code></pre>

<p>The problem appears to be on the final line there, I'm sending in the dependency for <code>gutil</code> through my plugins object and then referencing it and calling it's <code>log()</code> method. It works fine without the log, what am I missing here?</p>