Add in basic cropping logic.