Allow dimension units to be specified (width and height)