Adding the rect element component and implementing it in the editor