support for percent in dimensions

New regexp, [tested](http://rubular.com/r/326X87G40B), adding % for width/height.

Using style property, since in HTML5 the <img> width/height must be in pixels.