ENH: add option shape to functions in draw

Hi,

This PR follows a bug I tackled for 0.10. Here, I add an option shape for perimeter-like functions in draw.py. Filled shapes have the same option, same behavior. 
I reused the same function for functions in draw.py