Fix enqueueCopyImage, add argument validation