Thanks for your suggestion, It's done using node-canvas.