fix: safari bug w/ image tag in svg

Managed to detect a work-around to avoid to trigger safari bug when
loading via ajax an svg with an image tag.
In case of a svg file i do not use the img tag but directly include svg
in html.