separate segment cropping code out so that I may do pyramid feature
minor update