New algorithm for resizing and cropping images