added line_cap and line_join options