Method to parse a given text and get an image blob