canvas lineWidth fix