pre-processor for book.js splits images into spreads