Avoid squashing data down to only PIDs.

This should allow additional data to be passed through, such as
page dimensions.
Wrap OCR-specific stuff in a module_exists() check, so it stops breaking...
Merge pull request #59 from adam-vessey/7.x

Allow the use passing of dimensions...