icon: add support for inline svg/img

Close #523