See #560, #582. Fixing cropper for resources.