Generate a compact packing of imges from a folder of png images with Nodejs (use node-canvas), and Generate the data file who contains ids, sizes, offsets, positions of the images.