Add cover image for epub

I don't know Sphinx or ePub. I just hacked this together to get a cover image on iBooks.
I don't really expect it to be merged as I'm not confident that it's done correctly. Hopefully someone else can fix my mistakes.
But I thought I'd submit the PR anyway.