Added support for custom units in the size function

I've added support for passing in custom units instead of 'px'. I'm not 100% sure if my syntax is clean and correct, so feel free to bounce it back if your not happy.