How to clone a npp::ImageNPP_8u_C1 image (within the device)?

Hi,
Assuming to have “img1” as a pointer to an existing image of type “npp::ImageNPP_8u_C1”, what would be a proper way to clone/copy its data? Would “copyTo” work for this?

npp::ImageNPP_8u_C1 *img2 ;
img1->copyTo(img2) ;