added cartoonize function