Xpath absuoute or relative

Below is an example for xpath path to an element (sometimes our app lacks the ID in order to improve performance).
Is this the right way using the xpath or we shoul use a relative path (will be nice if someone explain how to convert the path)

//UIAApplication[1]/UIAWindow[1]/UIAScrollView[1]/UIAScrollView[1]/UIAScrollView[2]/UIAImage[10]