Added Crop function