How to create new Icon for custom element

I am referring custom element example.

For Triangle shape, you have used the

`  this.drawTriangle = function(p, side) {
    var halfSide = side / 2,
        points,
        attrs;

points = [ halfSide, 0, side, side, 0, side ];

attrs = computeStyle(attrs, {
  stroke: '#3CAA82',
  strokeWidth: 2,
  fill: '#3CAA82'
});

return p.polygon(points).attr(attrs);

};`

Now My question is if I want to create another shape like ‘Save’ icon type shape then how can I implement it both for context pad and custom render.

Suggest some help.