Add width and height as read-only properties.