fix crop image bug