Generate width and height attributes for PNG image blocks