Fixed grayscale-converted images not showing up in wkthmltopdf pdf.