synchronizing images and chapters