[[ Bug 10989 ]] Make sure the width and height parameters are forced to numbers (otherwise they come out as 0 when passed as strings, and the resizing doesn't happen).
Merge branch 'bugfix-10989' into release-6.1.0