fix Passepartout size calculation
add test