retuurn image size as css style instead of  html elements. Removed deprecated hspace and vspace tags.