Code to support async imagemin - it does sort of break the streaming principles but its ~40% faster on my machine