def drawImage(self, image, x, y, width=None, height=None, mask=None, preserveAspectRatio=False, anchor='c'): if not isinstance(image, VectorPdf): return self._drawImageNotVectorPDF(image, x, y, width, height, mask, preserveAspectRatio, anchor) image.drawOn(self, x, y, width=width, height=height)