add type hierarchy and normalize box model
add max width for images