How do I make and move objects that use multiple slots in a Uniform Grid Panel?

I am working on a project in which I have built a widget with a 5x5 uniform grid panel filled with images. The images are blank by default. I want to be able to make an object in a T shape, for instance, and be able to move it around and rotate it. I can do this with a single object, but the varied shapes are eluding me.

For example, O being Open, X being Filled:

OOOOO

OOOOO

OXXXO

OOXOO

OOOOO

What would be a good way to approach this?