Allow dimension units to be specified (width and height)

Allow width and height values to optionally be specified with a valid CSS unit (e.g. '10%' or '1000px').

If no unit is specified, it will default to 'px', thus the original behaviour is preserved.