In Bitrix not a picture is added to the product, and the product property changes.
I.e. that the product was picture - you need to change the properties of the product (a picture Bitrix itself loads where necessary).
You're adding via CIblockElement::Add
There is an example
"DETAIL_PICTURE" => CFile::MakeFileArray($_SERVER["DOCUMENT_ROOT"]."/image.gif")