**Describe the bug** `getWidth()/getHeight()` doesnt produce correct value in some cases. **To Reproduce** https://codehs.com/sandbox/andy/genuary-18-1 **Expected behavior** Should not error. **Screenshots**  **Desktop (please complete the following information):** Chrome Version 96.0.4664.110 (Official Build) (arm64)