Set 2D image element on top of 3d object

I have a ball placed at some point in my game and it is somewhere infront of screen. I want to place an image element right in the center of that ball but in 2d space the ball is in 3d space

perhaps check out how this is done: PlayCanvas Examples