fix memory leak in freeContext
try catching error when adding markup annotation
add getCoverPageImageData api
create Image from raw buffer
Merge pull request #219 from chrox/master

add getCoverPageImageData api