Several Fixes

Fixed various problems so the cropping process works as it should.