No preallocation of boxes and crop, saves memory
fix #1 sanity check for input frame