MDL-67547 dataformat_pdf: method to convert images to supported format.