Generate width, height parameters in the header.

Also some re-factoring.  Addresses adobe-photoshop/generator-assets#191, adobe-photoshop/generator-assets#186 and adobe-photoshop/generator-assets#185