Insert image dimensions into html img tags