Add list of allowed units to width and height parameters