Added cropping funkctionality