add image dimensions to html
fix doc-type for html-emails