Add serialization functions for regimentGraphics