remaple image

resample image flag