JS update to recognice img from text.