icon: add support for inline svg/img (close #523)