Added new percentile based cropping system