compress chapters, place images
check correct undefined references