crop_rotate : fix some bugs and strange behaviors

this is the merge of the CR_fixes branch