Add special-case handling for 1px and 3px wide line styles to shape drawing