Analysis and removal of the effects of crop management practices in remotely sensed images of agricultural fields