Implement image cropping (fill and fit option).