Fix width and height output to use final width and height.