upload sample images in cpp