Attach a shape graphic to game object

Is there a method BESIDES containers in phaser 3 to attach a graphic such as a rectangle to a game object so that it moves relative to it?

Containers or DIY.