Improved element attribute filtering

Use attribute.ownerElement.removeAttribute instead of using a closure
reference to element. Now we can declare the function in the outer scope
and not every time the filterAttributes method is called.
Misc changes

Alias for filter and reduce instead of callbacks, fixed height bug in
filter1DImages, stop checking minWidth/maxWidth props, changed some
branch weights, started fixing transformRuleElement bugs, stopped using
attribute.ownerElement, some comments cleanup