implemented node() function to get it working retrieve img or svg.