Fix the printing of shapes

We also add parameters that allow to adjust the color of the shapes.