Idefics2: sync added image tokens with transformers (#2080)
Before this change, the number of reserved image tokens was not the
same as the number of images. Fixes #2029.
While at it, also remove all the image token handling duplication
in `prepare_input`.