Javascript Algorithm to combine slices of images to form single image
===

I have slices of images, like 0_0.jpg, 0_1.jpg, 1_0.jpg. 1_1.jpg

I want to combine them to form one single image.

I have a canvas element already.

what library, or algorithm can do this?
