change a params,so that it crop image correctly