The operator profile image in Pega is loaded from the image instances from /operatorimages/filepath. when you upload a profile picture from the operator rule form, it will create a new instance in Data-Content-Image with /operatorimages/ file path and automatically update pyImageFileName, pyImageInsKey properties based on the pzInskey and filename on save of operator rule.
If you want to set an image based on the case attachment, Create an activity to do the following and call it after Operator creation activity.
A step to save as the attached image to /operatorimages/ filepath and get the pzInskey. By default, case attachments will be on /webwb/.
Open the operator page you want to update using Obj-Open by passing pyUserIdentifier.
By using Operator Page as a step page, Set pyImageFileName with Filename based on the filename and extension created in step 1(Eg. John.jpg) and set pyImageInsKey with the Inskey of the image instance created in step 1.
Obj-Save the operator page with write now enabled.
The profile picture is set for the operator.
Good Luck! Let us know if you have any more queries!