Center at given coordinates when adding rectangles

Adding circles centers the shape at the given coordinates, while
rectangles draw from the top-left at those coordinates. Change
rectangle drawing to center it at the given coordinates.