Added lineJoin and lineCap settings