More general msg format 

Msg format now includes a "shape" field for drawing.