refactor crop box initialization
add doc string