Converting an image into cartoon