Turn a photo into a comic in javascript