Center align externally loaded image in Textfield


I am trying to dynamically load en external image into a text field and want it to be center aligned, but it seems that the text area can only align the image left or right.

Is there some nifty trick I or work around can use to fix this issue?