Generate width and height attributes for SVG image blocks