Fix cropping endpoint