I'd also suggest adding the same advisory as occurs in the width() function, about only accepting pixel values, here.