Function to call cropping