Fixed setting line caps and joints in Graphics.
Updated setStrokeStyle test to use a rounded end cap.