fix for FancyBox to work with SVG elements