Improving performance of the pencil paint operation on lines of Size > 1