Updated gems
Removed unused code
Fixed order of parameters so cropping works