Use style to set line properties.

Note: If you forget to separate JSON object (dictionary) entries with a comma, the entire image doesn't render.