Allow the use passing of dimensions...

...  Also, wrap the OCR stuff in the book management in a module_exists() check so that it stops breaking if you don't have the OCR module installed.