add svg image detect method