Bulk image optimizer in node.js