resize or crop image, keeping aspect ratio or not. And keeping quality !