added toggle for cropping