Added the function centerOrigin for the RectangleShape class.