adjust upload cropping func