Adding 2D rectangle primitive