update bg and image