refactoring: use Document API getCoverPageImage to get cover image

`Document:getCoverPageImage()` supports getting cover image from PDF/DJVU/EPUB/FB2 files.