refactoring: use Document API getCoverPageImage to get cover image