Added support for title and class attributes to images.
clean up