Fixed layer copying offset issue and line drawing offset issue.