Added assertion for svg parameter