Merge rectangle and ellipse tool into BasicShapeTool

[#76140044]

Now it supports rectangles, ellipses, circles and squares.