refactor crop_image() in grapihcs.grabseeds