Make getWidth and getHeight methods return the correct fields in ObjectDefinition.