Create macros for simplifying element attribute getters (fixes #1931)
Use getter macros in HTMLImageElement
Split up macro invocation
Merge pull request #3073 from Manishearth/macro-getters

Create and use attribute getter macros; r=Ms2ger