added new line in comment
added test.php
Revert
fix text and image attributes

Now return null if empty.
fix comments
fix image and text attributes.