Fix pen.copy() breaking outline drawing in custom cap functions.