Embeds: Catch TypeErrors when casting width and height to integers