image scaling algorithm, mult. images (book mode)

and a trillion bug fixes to the book mode feature, scaling algorithm