Generating a painting from a picture