Turned out the bug was another mixup between height and width