adding ability to add class name directly to generated img tag,and updat...

...ing documentation