servermanager.Register in PV 5.10.0

Hej,
when using texture images in a session which will later be copied to another drive/directory I frequently used the code below to be able to keep the image (using the “Search files uder specified directory” on loading the state):

rv1=GetActiveViewOrCreate('RenderView')
profile=XMLPolyDataReader(FileName=['D:\\projects\\load_image.vtp'])
pathToTextureImage='D:\\projects\\image.png'
Display=Show(profile, view=rv1)
Display.SetRepresentationType('Surface')
texProxy = servermanager.CreateProxy('textures','ImageTexture')
texProxy.GetProperty('FileName').SetElement(0, pathToTextureImage)
texProxy.UpdateVTKObjects()
servermanager.Register(texProxy, registrationName='prof_IL1800_image')
...

With PV 5.10.0 servermanager.Register is not valid any more. What is the correct way to register the image in the newest ParaView release?

Thanks in advance and cheers,
Venke

Why not creating the proxy the standard way ?

tex = CreateTexture('/home/glow/data/tmp/image.png')

Thanks a lot! I wasn’t aware of this.