Fixed constant value cropping to option setting

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.
Merge pull request #6596 from krautnerds/fix-cropping-in-core-function

Fixed cropping function to respect option settings