update background image
next_permutation