# servermanager.Register in PV 5.10.0

**URL:** https://discourse.paraview.org/t/servermanager-register-in-pv-5-10-0/8437
**Category:** ParaView Support
**Tags:** python
**Created:** [November 19, 2021, 8:36am UTC](https://discourse.paraview.org/t/servermanager-register-in-pv-5-10-0/8437 "2021-11-19T08:36:30Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Venke](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/v/6de8d8/32.png) [@Venke](https://discourse.paraview.org/u/Venke)
#### Post date: [November 19, 2021, 8:36am UTC](https://discourse.paraview.org/t/servermanager-register-in-pv-5-10-0/8437/1 "2021-11-19T08:36:30Z")

</div>

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):

```auto
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

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [November 19, 2021, 1:21pm UTC](https://discourse.paraview.org/t/servermanager-register-in-pv-5-10-0/8437/2 "2021-11-19T13:21:27Z")

</div>

Why not creating the proxy the standard way ?

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

---

<div class="post-metadata">

### Author: ![Venke](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/v/6de8d8/32.png) [@Venke](https://discourse.paraview.org/u/Venke)
#### Post date: [November 24, 2021, 7:46am UTC](https://discourse.paraview.org/t/servermanager-register-in-pv-5-10-0/8437/3 "2021-11-24T07:46:31Z")

</div>

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