try to handle non-default DPI setttings better in EbookEngine.cpp