Many improvements to smart cropping