added CSS class name support

Copies the class name of the picture element over to the inserted img tag.