This isn't enough: you also need to set data.crop to true in the other case.  I think you can say:

   data.crop = !nocrop