Revert "Remove svg support detection. Instead, use this :"

This reverts commit c784f2e4eef854b6c51c24579a5fb1d41508221e.