parsing of simple text and image