also returns start/end xpointers in found result
Merge pull request #256 from koreader/chrox-master

also returns start/end xpointers in found result
add writePNG method for BlitBuffer
Merge pull request #257 from koreader/chrox-master

add writePNG method for BlitBuffer
fix debug message

convert enum ctype to number for proper debug printout