Fix misplacement of some non-PDF annotations on hiDPI
PagePainter::drawShapeOnImage() and drawEllipseOnImage() didn’t respect the image’s device pixel ratio, causing annotations to be misplaced. This fixes it.
Steps to reproduce:
- Set your screen scale to e. g. 1.25.
- Open e. g. a .txt document.
- Draw e. g. an arrow annotation or a text markup annotation.