added cropping feature