Fixed cropping function to respect option settings

I don’t think that it is the right way to set the cropping by checking if the ‚crop’ option is set because it could have been set to 0 in the options. In that case it would be cropped either way because isset would also return true.