fix(dimensions): use boxRect for width an height