You can use `width >>= 1;` and `height >>= 1;` to do integer division by 2 without using `parseInt`.