cut img in setting