Merge pull request #219 from chrox/master

add getCoverPageImageData api
Two functions I need in setdefaults and search a few times
Merge pull request #220 from WS64/master

Two functions I need in setdefaults and search a few times
refactor out Docview:render calling into a seperate function
so that it won't be called when redering is not neccessary.