added crop script and plot_bbxs function