Best method of keeping xy reference centre of display object after scaling

Just like the title says.

I’m scaling an object but there is logic based on the centre reference of the image I’m scaling

After the image scales the centre reference does not stay centre and thus my logical statements are affected

Any advice would be great.