fix: various fixes for kindle dxg
Merge pull request #1018 from houqp/dxg

fix: various fixes for kindle dxg
use new FFI based mupdf API

This will use the new API where the Lua/C interface was used before
and also drop usage of mupdfimg wrapper which is now implemented
within the mupdf interface