Thumbnails working for all epub documents.

Passes the test with a 71 page epub, I don't think it would have much problems were we to scale it further.