WP-4718 fix the image copy function call