fix figure overflow in tex

set a max-height